#include<stdio.h>
int main() {
    int count, a, b, sum[100];
    int sz = 0;
    scanf("%d", &count);
    while (count--) {
        scanf("%d", &a);
        scanf("%d", &b);
        sum[sz++] = a + b;
    }
    for (int i = 0; i < sz; i++) {
        printf("%d", sum[i]);
        if (i != sz - 1)
            printf("\n");
    }
}